package com.pb.wkflow.core.factor;

import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.impl.bpmn.parser.BpmnParse;
import org.camunda.bpm.engine.impl.bpmn.parser.BpmnParser;
import org.camunda.bpm.engine.impl.cfg.BpmnParseFactory;

/**
 * @author 苗益辉
 * @date 2022/5/6 16:33
 */
@Slf4j
public class MyBpmnParseFactory implements BpmnParseFactory {

    @Override
    public BpmnParse createBpmnParse(BpmnParser bpmnParser) {
        log.info("加载自定义bpmn解析器");
        return new MyBpmnParse(bpmnParser);
    }
}
